package com.faryangsh.controller;

import com.example.bean.Home;
import com.example.bean.PersonQueryRequest;
import com.example.bean.PersonUpdateRequest;
import com.example.bean.School;
import com.example.service.PersonQueryService;
import com.example.service.PersonService;
import com.faryangsh.rep.TabStaff;
import com.faryangsh.rep.TabStaffRep;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author 杨志远[of2551]
 *         company qianmi.com
 *         Date    2017-03-20
 */

@RestController
@RequestMapping("/web")
@Slf4j
@EnableSwagger2
public class PersonController {

    @Autowired
    private TabStaffRep rep;


    @ApiOperation("查询school")
    @RequestMapping(value = "/query/school/id")
    public void querySchool(){
        TabStaff build = TabStaff.builder().idCardNo("12").staffName("123").id(12).build();
        rep.save(build);
    }



}
